#ifndef RS_SOCKET_H
#define RS_SOCKET_H

#define BAUDRATE B9600

#include <string>
#include <boost/shared_ptr.hpp>

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>

#include "i_socket.h"
#include "socket/socket_exception.h"

using namespace std;

namespace network {
	class rs_socket : public network::i_socket {
	public:
		rs_socket(const string &file);
		virtual ~rs_socket();

		virtual void send(const string &str);
		virtual string recv();
	private:
		int _fd;
	};
}

#endif
